const express = require("express");
const patrolController = require("../controller/patrolController");
const authController = require("../controller/authController");

const router = express.Router({ mergeParams: true });

// 创建服务
router
    .route("/")
    .post(authController.protect, patrolController.createComment)
    .get(patrolController.getPatrolMessage)

module.exports = router;
